//
//  RouterProtocol.swift
//  CitySearch
//
//  Created by guotonglin on 2020/6/8.
//  Copyright © 2020 guotonglin. All rights reserved.
//

import Foundation

typealias NavigationBackClosure = (()->())

protocol Routing {
    func push(_ drawable: Drawable, isAnimated: Bool, onNavigationBack: NavigationBackClosure?)
    
    func pop(_ isAnimated: Bool)
    
    func popToRoot(_ isAnimated: Bool)
    
    func present(_ drawable: Drawable, isAnimated: Bool, onDismiss closure: NavigationBackClosure?)
    
}
